package cn.besbing.server.service.primary;

import cn.besbing.model.entities.primary.Project;
import cn.besbing.model.entities.primary.ProjectExample;
import cn.besbing.model.mapper.primary.ProjectMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Xiamen HLYY Network Technology Co., Ltd.
 * DataLoader Cloud
 *
 * @Author sheny
 * @Date 2020/10/16  14:24
 * @Version 1.0
 * @Site https://besbing.cn
 * @Address Xiamen Bazaar U.S. District, 326 South Road, A Dong A209.
 */
@Service
public class PrimaryProjectServiceImpl implements ProjectMapper{

    @Autowired(required = false)
    private ProjectMapper projectMapper;

    @Override
    public long countByExample(ProjectExample example) {
        return projectMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(ProjectExample example) {
        return projectMapper.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(String name) {
        return projectMapper.deleteByPrimaryKey(name);
    }

    @Override
    public int insert(Project record) {
        return projectMapper.insert(record);
    }

    @Override
    public int insertSelective(Project record) {
        return projectMapper.insertSelective(record);
    }

    @Override
    public List<Project> selectByExample(ProjectExample example) {
        return projectMapper.selectByExample(example);
    }

    @Override
    public Project selectByPrimaryKey(String name) {
        return projectMapper.selectByPrimaryKey(name);
    }

    @Override
    public int updateByExampleSelective(Project record, ProjectExample example) {
        return projectMapper.updateByExampleSelective(record, example);
    }

    @Override
    public int updateByExample(Project record, ProjectExample example) {
        return projectMapper.updateByExample(record, example);
    }

    @Override
    public int updateByPrimaryKeySelective(Project record) {
        return projectMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Project record) {
        return projectMapper.updateByPrimaryKey(record);
    }

    public List<Project> selectAllUnreceivedSampleProject(){
        return projectMapper.selectAllUnreceivedSampleProject();
    }

}
